package com.woniuxy.rabbitmqspringboot.plugin;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Author zhangyong
 * @Date 2021/8/12 0012下午 4:32
 */
@Component
public class PluginConsumer {

    @RabbitListener(queues = "plugin_delay_queue")
    public void consume(String data){
        System.out.println("接收时间"+new Date());
    }
}
